<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>验证手机号码</title>
    <script>
        //手机号码
        var phone = 132294165;
        //定义验证的正则
        var reg = /^1[3456789]\d{9}$/;
        if (reg.test(phone)){
            console.log("是手机号码");
        }else {
            console.log("不是");
        }
    </script>
</head>
<body>

</body>
</html>